package week11;

class PrintTask implements  Runnable
{
	private int n;
	public PrintTask(int n) {
		this.n=n;
	}
	public void run()
	{
		for (int i = 0; i < n; i++) {
			System.out.println(i);
		}
		System.out.println(Thread.currentThread().getName());
	}
}